package com.zdj.presentation.modules.main.vms;

import android.view.View;

import com.zdj.aoplibrary.annotations.DebugTrace;
import com.zdj.presentation.base.BaseViewModel;
import com.zdj.presentation.modules.main.views.MainActivity;
import com.zdj.presentation.modules.user.views.UserActivity;
import com.zdj.utils.LogLevel;

/**
 * TODO 疑问？ activity之间传递数据如何做？
 * Created by zdj on 16-5-28.
 */

public class MainVm extends BaseViewModel<MainActivity> {

    public MainVm(MainActivity mainActivity) {
        super(mainActivity);
    }

    @Command
    @DebugTrace(lever = LogLevel.ERROR)
    public View.OnClickListener onClickLoadData() {

        return v -> toActivity(UserActivity.class);

    }


}
